package com.gviiii.pprf;

import com.gviiii.pprf.netty.RfNioClient;
import com.gviiii.pprf.utils.SpringContextUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
@EnableCaching
public class PpRfApplication {

    public static void main(String[] args) {
        SpringApplication.run(PpRfApplication.class, args);
        RfNioClient rfNioClient= SpringContextUtils.getBean("rfNioClient");
        assert rfNioClient != null;
        rfNioClient.start();
    }

}

